package com.kmzx.one.common.exceptions;

public class NoSuchObjectException extends RuntimeException {

    private static final long serialVersionUID = 7856101933787375430L;

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public NoSuchObjectException setCode(int code) {
        this.code = code;
        return this;
    }

    public NoSuchObjectException(Throwable cause) {
        super(cause);
    }

    public NoSuchObjectException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public NoSuchObjectException(String message) {
        super(message);
    }

    public NoSuchObjectException(Integer code,String message){
        super(message);
        this.code = code;
    }
}
